﻿package com.firewolf.adapter.outlet;
/**
 * 适配器，通过该类，三线插座可以使用两线插座连接电源
 * @author Administrator
 *
 */
public class TreeElecricAdapter implements IThreeElectricOutlet{
	private ITwoElectricOutlet outlet;
	public TreeElecricAdapter(ITwoElectricOutlet outlet){
		this.outlet = outlet;
	}
	@Override
	public void connectElectricCurrentByTreeFoot() {
		outlet.connectElectricCurrentByTwoFoot();
	}
}
